PEGetNthTableSessionInfo4

The PEGetNthTableSessionInfo4 function was specially designed to accept VB's native 4-byte aligned "Types." It gets the session information for a Microsoft Access table being used in your report. Many Microsoft Access database tables require that a session be opened before the information in the table can be used. Use PEGetNthTableSessionInfo4 to obtain the session information (User ID, Password, and Session Handle) for a particular table.

Declare Function PEGetNthTableSessionInfo4 Lib "crwrap32.dll" (ByVal 
printJob As Integer, ByVal TableN As Integer, SessionInfo As 
PESessionInfo4) As Integer
Parameters

printJob

Identifies the handle of the print job that uses the table for which you need to obtain the session information.

TableN

0 indexed table number indicating which table in the report you wish to obtain the session information for.

SessionInfo

Refer to the PESessionInfo4 structure for further information.

Return Value

TRUE (1) if the call is successful, FALSE (0) if the call fails.

Remarks


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com